<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="Site.Master" CodeBehind="Events.aspx.cs" Inherits="FreeLancer.HRB.WebApp.Events" %>
<%@ Register Src="~/UserControls/NewsBrowser.ascx" TagName="NewsBrowser" TagPrefix="uc" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v8.1, Version=8.1.1.0, Culture=neutral, PublicKeyToken=49d90c14d24271b5"
  Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.v8.1, Version=8.1.1.0, Culture=neutral, PublicKeyToken=49d90c14d24271b5"
  Namespace="DevExpress.Web.ASPxNewsControl" TagPrefix="dxnc" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <table style="width: 100%">
    <tr>
      <td style="vertical-align:top;">
        <div>
          <div class="category-container">
            <div class="category-header">
              <h1 class="category-title">
                <a class="more-news" id="anchorCategoryTitle" runat="server"></a>
              </h1>
            </div>
            <div class="category-content">
              <dxnc:ASPxNewsControl ID="ASPxNewsControl" runat="server" Width="100%"
                NavigateUrlFormatString="" DataSourceID="EventsDataSource"
                DateField="DateModified" 
                HeaderTextField="Title" 
                NavigateUrlField="EventID"
                TextField="Description"
                RowPerPage="5">
                <ItemSettings ShowHeaderAsLink="true" DateFormatString="{0:g}" MaxLength="255">
                </ItemSettings>
                <ItemHeaderStyle ForeColor="#D10A0A" CssClass="title-news">
                </ItemHeaderStyle>
                <ItemContentStyle CssClass="main-news" Font-Names="Arial" Font-Size="Small">
                </ItemContentStyle>
                <ItemDateStyle CssClass="category-detail-datetime">
                </ItemDateStyle>
                <PagerSettings Visible="true" 
                  ShowDisabledButtons="true" ShowNumericButtons="true" 
                  FirstPageButton-Text="<<" 
                  LastPageButton-Text=">>"
                  NextPageButton-Text=">"
                  PrevPageButton-Text="<"
                  FirstPageButton-Visible="true"
                  LastPageButton-Visible="true"
                  NextPageButton-Visible="true"
                  PrevPageButton-Visible="true"
                  EllipsisMode="InsideNumeric" 
                  Summary-Text="">
                </PagerSettings>
              </dxnc:ASPxNewsControl>
              <%--<div class="more-news-area" runat="server" id="divMoreNews">
                <a runat="server" id="anchorMoreNews" class="more-news" href="">
                  <%=Resources.labels.lblOtherNews %>
                </a>
              </div>--%>
          </div>
        </div>
      </td>
    </tr>
  </table>
  <data:EventsDataSource runat="server" ID="EventsDataSource" 
    SelectMethod="GetPaged" EnablePaging="true">
  </data:EventsDataSource>
  <div>
    <div id="goto-container">
      <div id="goto-title">
        <span><%=Resources.labels.calendarPickNews %></span>
      </div>
      <dxe:ASPxDateEdit ID="ASPxDateEdit" runat="server"
         CalendarProperties-ClearButtonText="<%$ Resources:labels, calendarClear %>"
         CalendarProperties-TodayButtonText="<%$ Resources:labels, calendarToday %>" CssClass="inline"
         CalendarProperties-FirstDayOfWeek="Monday"
         CalendarProperties-ShowDayHeaders="false">
      </dxe:ASPxDateEdit>
      <div style="margin-top:10px;">
        <%--<dxe:ASPxButton ID="ASPxBtnView" runat="server" Text="Xem" CssClass="inline" Width="70px">
        </dxe:ASPxButton>--%>
        <asp:Button ID="btnView" runat="server" Text="<%$ Resources:labels, calendarView %>" OnClick="btnView_Click" Width="70px"/>
      </div>
    </div>
  </div>
</asp:Content>